package com.ymatou.admin.mq.service;

import java.util.ArrayList;
import java.util.List;

import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;

/**
 * 查看消息接口Call FreeMaker Template自动生成代码
 */
public class FindMessageCall extends YmatouBaseCall {
	private static String opurl = "mq/admin/findmessage";

	public FindMessageCall() {
		super(EnvSetup.getSystemUrl("mqmanage"), opurl, "GET", "PARAM");
	}

	@Override
	public void addDefHeader() {
		client.addHeader("Accept", "text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}

	public List getReturnList() {
		List data = new ArrayList();
		data = (List) FormatUtil.GSONToObject(getReturnData(), ArrayList.class);
		return data;
	}
}